package com.support.jdbc;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class DynamicDataSource extends AbstractRoutingDataSource
{
	protected Object determineCurrentLookupKey() {
        // 从自定义的位置获取数据源标识
		return DynamicDataSourceHolder.getDataSource();
	}
}
